<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div>
    <span>state.count is </span>
    <span id="count">0</span>
  </div>
  <script src="../dist/vue-observer.js"></script>
  <script>
    var state =  { data: { count: 0 }}
    VueObserver.observe(state)
    window.setInterval(() => {
      state.data.count++
    }, 1000)
  </script>
</body>
</html>